package com.qing.thread.staticproxy;

public class MarryMain {
    public static void main(String[] args) {
        //通过婚庆公司来帮you结婚，代理，来说明线程也是通过静态代理来实现
        new WeddingCompany(new You()).HappyMarry();
        new WeddingCompany(new Me()).HappyMarry();
        //Thread代理Runnable类，它实现了Runnable
        new Thread(() -> System.out.println("woaini")).start();
    }
}
